import 'package:flutter/material.dart';
import 'package:zootix/util/zt_screen_adaper_util.dart';

class ZtTranslateBtn extends StatelessWidget {
  Function? callback;
  ZtTranslateBtn({super.key, this.callback});

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: () {
        if (callback != null) {
          callback!();
        }
      },
      child: Container(
        alignment: Alignment.center,
        height: ZtScreenAdaper.width(20),
        width: ZtScreenAdaper.width(60),
        decoration: BoxDecoration(
            color: Colors.white,
            borderRadius: BorderRadius.circular(ZtScreenAdaper.sp(5)),
            border: Border.all(color: Color(0xFFCCCCCC), width: 1)),
        child: Text(
          'Translate',
          style: TextStyle(fontSize: ZtScreenAdaper.sp(12)),
        ),
      ),
    );
  }
}
